import uni from '@dcloudio/vite-plugin-uni'
import autoImport from './auto-import'
import createSetupExtend from './setup-extend'

import path from 'path'

export default (viteEnv: any, isBuild = false): [] => {
  const vitePlugins = []
  vitePlugins.push(uni())
  vitePlugins.push(autoImport(path))
  vitePlugins.push(createSetupExtend())
  return vitePlugins
}
